/**
 * 
 */
package com.wolfpire.lessonplan.dao;

import java.util.List;

import com.wolfpire.system.common.base.dao.IBaseHibernateDao;
import com.wolfpire.system.model.OrgUserRelation;
import com.wolfpire.system.model.ProfessionSubjectRelation;
import com.wolfpire.system.model.SubjectKnowledgeRelation;
import com.wolfpire.system.model.SubjectLessonPlanRelation;

/**
 * 用户组织关联表持久层接口
 * @author lihd
 *
 */
public interface SubjectLessonPlanRelationDao extends IBaseHibernateDao<SubjectLessonPlanRelation, Long> {
	
	/**
	 * 绑定专业和学科之间的关系
	 * @param userId
	 * @param orgId
	 */
	public void relate(Long subjectId, Long LessonplanId,Long knowledgeId);
	
	/**
	 * 获取专业学科关系
	 * @param userId
	 */
	public SubjectLessonPlanRelation getSPRelation(Long LessonplanId);
	
	/**
	 * 获取组织下的用户
	 * @param orgId	组织id
	 * @return
	 */
	public List<SubjectLessonPlanRelation> getPSRelations(Long subjectId);

}
